package com.car.service.task.impl;

import java.util.List;

import javax.annotation.Resource;

import com.car.dal.dao.task.TgTaskDao;
import com.car.dal.object.TgTask;
import com.car.service.task.TaskService;
import com.car.util.Page;

public class TaskServiceImpl implements TaskService {
	
	@Resource
	private TgTaskDao taskDao;

	@Override
	public Integer getTaskCountByType(TgTask task) {
		return taskDao.getTaskCountByType(task);
	} 
	@Override
	public List<TgTask> getTaskByType(TgTask task,Page page) {
		return taskDao.getTaskByType(task, page);
	}
	@Override
	public Integer getTaskTeaCountByType(TgTask task) {
		Integer count = taskDao.getTaskTeaCountByType(task).size();
		return count;
	}
	@Override
	public List<TgTask> getTaskTeacherByType(TgTask task,Page page) {
		return taskDao.getTaskTeacherByType(task, page);
	}
}
